<table class="centered medium-table">
<tr>
  <th>datum</th>
  <th>domácí</th>
  <th>výsledek</th>
  <th>hosté</th>
  <th></th>
  <th>pozn.</th>
</tr>
<?
$query = getVysledkyPratelske(ZDELOV_A, SEASON);

$idx = 0;
while($fetch = MySQL_Fetch_Array($query)){
        $den = DateFormat::getDay($fetch["den"]);
        $datum = DateFormat::format($fetch["datum"], DF_DDMMYYYYHHMM)." (".$den.")";
        $vysledek = $fetch["gd"]." - ".$fetch["gh"];
        $domaci = $fetch["domaci"];
        $hoste = $fetch["hoste"];
        $id_clanek = $fetch["id_clanek"];
        $poznamka = $fetch["poznamka"];
  
        if($idx % 2 == 0){ echo "<tr>"; }
        else { echo "<tr class='second'>"; }
          echo "<td class='lefted'>$datum</td>";
          echo "<td class='righted'>$domaci</td>";
          echo "<td>$vysledek</td>";
          echo "<td class='lefted'>$hoste</td>";
          echo "<td>";
          $style = "";
          if($id_clanek == "") $style = "disabled"; 
          echo "<a class='button preloader ".$style."' href='".redirect_str(PAGE_REPORT).add_par("id_clanku=".$id_clanek)."'>ČLÁNEK</a>";
          echo "</td>";
          echo "<td class='lefted'>$poznamka</td>";
        echo "</tr>";
        $idx ++;
}
?>
</table>